package org.dromara.chicken.service;

import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.chicken.domain.ChickenVarieties;

import java.util.Collection;
import java.util.List;

/**
 * 鸡品种Service接口
 *
 * @author Mr Lei
 * @date 2024-05-29
 */
public interface IChickenVarietiesService {

    /**
     * 查询鸡品种
     */
    ChickenVarieties queryById(Long id);

    /**
     * 查询鸡品种列表
     */
    TableDataInfo<ChickenVarieties> queryPageList(ChickenVarieties bo, PageQuery pageQuery);

    /**
     * 查询鸡品种列表
     */
    List<ChickenVarieties> queryList(ChickenVarieties bo);

    /**
     * 新增鸡品种
     */
    Boolean insertByBo(ChickenVarieties bo);

    /**
     * 修改鸡品种
     */
    Boolean updateByBo(ChickenVarieties bo);

    /**
     * 校验并批量删除鸡品种信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
